<template>
  <view class="select-list">
    <van-field
      :value="nowValue"
      :label="label"
      label-class="label-class"
      input-class="input-class"
      @change="nowValue = $event.mp.detail"
      @click-input="showPopup"
      placeholder="请输入"
      readonly
    />
    <van-popup
      :show="ifShow"
      position="bottom"
      custom-style="height: 30%;"
      @close="dataCancel"
    >
      <van-picker
        show-toolbar
        visible-item-count="4"
        :columns="dataList"
        :default-index="dataList.indexOf(nowValue)"
        toolbar-class="toolbar-class"
        column-class="column-class"
        @confirm="dataConfirm"
        @cancel="dataCancel"
      />
    </van-popup>
  </view>
</template>
<script src="./script.js"></script>
<style src="./style.less" lang="less"></style>
